﻿using NL.Web;
using NL.WebRes;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ABLoadDemo : MonoBehaviour
{
    public string MabFile;
    // Start is called before the first frame update
    void Start()
    {

        string url = Application.streamingAssetsPath + $"/{MabFile}";// URI.ToFull(MabFile);

        WEBRES.LoadRES<GameObject>(url).Wait((w) =>
        {
            if (w.LoadSuccess)
            {
                Instantiate<GameObject>(w.LoadedObj as GameObject);
            }
        });
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
